function s2o(str) {
    let arr = str.split('?');
    let qs = arr[1];
    let newarr = qs.split('&');
    let obj = {};
    newarr.forEach(item=>{
        let line = item.split('=');
        obj[line[0]] = line[1];
    })
    return obj;
}
module.exports = s2o;